package com.jy.adscm.operation.aftersales.bean;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author zyl
 * @since 2019-08-19
 */
public class ShSpacePartsDetail implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 备件id
     */
    private Integer pid;
    /**
     * 出库人
     */
    private String creator;
    @TableField(exist = false)
    private String creatorName;
    /**
     * 出库时间
     */
    private Date createTime;
    /**
     * 浆站id
     */
    private String customer;
    @TableField(exist = false)
    private ShCustomerInfo customerName;
    /**
     * 机器id
     */
    private String machine;
    @TableField(exist = false)
    private ShMachine machineName;

    public String getCreatorName() {
        return creatorName;
    }

    public void setCreatorName(String creatorName) {
        this.creatorName = creatorName;
    }

    public ShCustomerInfo getCustomerName() {
        return customerName;
    }

    public void setCustomerName(ShCustomerInfo customerName) {
        this.customerName = customerName;
    }

    public ShMachine getMachineName() {
        return machineName;
    }

    public void setMachineName(ShMachine machineName) {
        this.machineName = machineName;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public String getCreator() {
        return creator;
    }

    public void setCreator(String creator) {
        this.creator = creator;
    }
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    public Date getCreateTime() {
        return createTime;
    }
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getCustomer() {
        return customer;
    }

    public void setCustomer(String customer) {
        this.customer = customer;
    }

    public String getMachine() {
        return machine;
    }

    public void setMachine(String machine) {
        this.machine = machine;
    }

    @Override
    public String toString() {
        return "ShSpacePartsDetail{" +
        "id=" + id +
        ", pid=" + pid +
        ", creator=" + creator +
        ", createTime=" + createTime +
        ", customer=" + customer +
        ", machine=" + machine +
        "}";
    }
}
